﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.Master" AutoEventWireup="true"
    CodeBehind="HomePage.aspx.cs" Inherits="_1041326_1041339_1041433.UserPages.HomePage" %>

<%@ Register Assembly="DotNetOpenAuth" Namespace="DotNetOpenAuth.OpenId.RelyingParty"
    TagPrefix="rp" %>
<%@ Register Assembly="DotNetOpenAuth" Namespace="DotNetOpenAuth.OpenId.Extensions.SimpleRegistration"
    TagPrefix="sreg" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="page1">
        <div class="wrapper">
            <div class="col-1">
                <h3>
                    Tin Tức
                </h3>
                <h2>
                    VNEXPRESS
                </h2>
                <asp:GridView ID="gvRss1" runat="server" AutoGenerateColumns="False" CellPadding="4"
                    ForeColor="#333333" GridLines="None" ShowHeader="False" AllowPaging="True" 
                    PageSize="3" onpageindexchanging="gvRss1_PageIndexChanging"
                    >
                    <AlternatingRowStyle CssClass="paddingrow" BackColor="White" />
                    <Columns>
                        <asp:TemplateField>
                            <ItemTemplate>
                                <asp:HyperLink CssClass="titlenews" ID="HyperLink1" runat="server" NavigateUrl='<%# Eval("Url") %>'
                                    Text='<%# Eval("Title") %>'></asp:HyperLink>
                                <br />
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
                <h2>
                     TUỔI TRẺ</h2>
               <asp:GridView ID="gvRss2" runat="server" AutoGenerateColumns="False" CellPadding="4"
                    ForeColor="#333333" GridLines="None" ShowHeader="False" AllowPaging="True" 
                    PageSize="3" onpageindexchanging="gvRss2_PageIndexChanging">
                    <AlternatingRowStyle CssClass="paddingrow" BackColor="White" />
                    <Columns>
                        <asp:TemplateField>
                            <ItemTemplate>
                                <asp:HyperLink CssClass="titlenews" ID="HyperLink1" runat="server" NavigateUrl='<%# Eval("Url") %>'
                                    Text='<%# Eval("Title") %>'></asp:HyperLink>
                                <br />
                              
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
                <asp:Label ID="lbMessage" runat="server" Visible="false" Text="Label"></asp:Label>
            </div>
            <div class="col-2">
                <h3>MUA Bán</h3>
                           
                <asp:GridView CssClass="paddingrow" ID="gvTinTuc" runat="server" AutoGenerateColumns="False" 
                    CellPadding="4" ForeColor="#333333" GridLines="None" ShowHeader="False" 
                    AllowPaging="True" onpageindexchanging="gvTinTuc_PageIndexChanging" 
                    PageSize="5">
                    <AlternatingRowStyle ForeColor="#284775" />
                    <Columns>
                        <asp:TemplateField>
                            <ItemTemplate>
                                <asp:Image ID="Image1" runat="server" CssClass=""
                                    ImageUrl='<%# "../Images/"+Eval("MaTin")+".jpg" %>' />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <ItemTemplate>
                                <asp:HyperLink ID="HyperLink1" runat="server" 
                                    NavigateUrl='<%# "/UserPages/BuySaleDetail.aspx?id="+Eval("MaTin") %>' 
                                    Text='<%# Eval("TieuDe") %>'></asp:HyperLink>
                                <br />
                                <asp:Label ID="Label2" runat="server" Text='<%# Eval("NoiDung") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <EditRowStyle BackColor="#999999" />
                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <PagerStyle ForeColor="Black" HorizontalAlign="Center" />
                    <RowStyle />
                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                    <SortedAscendingCellStyle BackColor="#E9E7E2" />
                    <SortedAscendingHeaderStyle BackColor="#506C8C" />
                    <SortedDescendingCellStyle BackColor="#FFFDF8" />
                    <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
                </asp:GridView>


                
            </div>
        </div>
    </div>
</asp:Content>
